package com.eventbus.monitor;

import java.nio.file.Path;
import java.nio.file.WatchEvent;

/**
 * Created by Lxk on 2020/7/25.
 */
public class FileChangeEvent {

    private final Path path;

    private final WatchEvent.Kind kind;

    public FileChangeEvent(Path path, WatchEvent.Kind kind) {
        this.path = path;
        this.kind = kind;
    }

    public Path getPath() {
        return path;
    }

    public WatchEvent.Kind getKind() {
        return kind;
    }

    @Override
    public String toString() {
        return "FileChangeEvent{" +
                "path='" + path + '\'' +
                ", kind=" + kind +
                '}';
    }
}
